package org.hyf.inspur.LessonDesin.clear.count2;

import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;
import org.hyf.inspur.LessonDesin.clear.tools.TProperties;

import java.io.IOException;

public class UvMapper extends Mapper<LongWritable, Text,Text,Text> {


    protected void map(LongWritable key, Text value,
                       Mapper<LongWritable, Text, Text, Text>.Context context)
            throws IOException, InterruptedException {
        String line=value.toString();
        String[] values = value.toString().split(TProperties.getValue("fileoutsplit"));
        String num = values[0];
        String s = values[2];
        context.write( new Text(num),new Text(s));
    }


}
